<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
<!-- 		<script src="hyl/core.js"></script>
		<script src="dbm/designsql.js"></script>
		<script src="hyl/plus/sqlite.web.js"></script>
		<script src="hyl/plus/storage.js"></script>
		<script src="hyl/core.mdl.js"></script>
		<script src="hyl/md.sql.js"></script>
 -->
	</head>
	<body>
		<div id="pp"></div>
		<input id="p2" />
	</body>
</html>
<script>
 function addDate(date, days) {
            if (days == undefined || days == '') {
                days = 1;
            }
            var date = new Date(date);
            date.setDate(date.getDate() + days);
            var month = date.getMonth() + 1;
            var day = date.getDate();
            return date.getFullYear() + '-' + getFormatDate(month) + '-' + getFormatDate(day);
        }
   function getFormatDate(arg) {
            if (arg == undefined || arg == '') {
                return '';
            }
            var re = arg + '';
            if (re.length < 2) {
                re = '0' + re;
            }

            return re;
        }
				
				var d=new Date('2019-9-2');
								console.log('addDate', d.getDate(), d.getMonth()+ 1 ,d.getFullYear() );
				d.setDate(2+7)
					console.log('addDate', d.getDate(), d.getMonth()+ 1 ,d.getFullYear() );
//console.log('addDate',addDate(new Date('2019-8-28'),9));
/* 	
	var db = new DataBase("mydb");
	_Omd = new ModelData(db, _DBconfig["users"]);
	_Omd.where( {"role":["=",1],"s1":["=",1]});
	console.log(_Omd.getWhere())
//新增
	var data = _Omd.createMData();
	data.role = 22;
	console.log("createData", data);
	//console.log("_model", _Omd._model);
	_Omd.setObj(data);
//修改
	_Omd.getObjByID(7, function(data) {
		// var data= 
		data.role = 44;
		_Omd.setObj(data);
		console.log("getObjByID", data);
	});
	//查询
	_Omd.where().getList(function(data) {
		console.log("getList", data);
	}); */
</script>
